// 与登录相关的请求
import request from '@/utils/request'

// 图形验证码
export function getPicCode () {
  return request.get('/captcha/image')
}

// 获取短信验证码
export function getSmCode (form) {
  return request.get('/captcha/sendSmsCaptcha', {
    form
  })
}

// 登录
export function login (smsCode, mobile) {
  return request.post('/passport/login', {
    form: {
      isParty: false,
      partyData: {},
      smsCode: smsCode,
      mobile: mobile

    }
  })
}
